import java.util.Scanner;
import java.util.regex.Pattern;

/**
 * @author zhaoqian
 * @create 2021/8/27 13:31
 */
public class Test {    //  i am a boy → boy a am i
    public static String test(String a){

        StringBuffer stringBuffer = new StringBuffer();
        String[] split = a.split(" ");
        for (String p:split) {
            stringBuffer.insert(0,p);
            stringBuffer.insert(0," ");
        }
        stringBuffer.deleteCharAt(0);
        return stringBuffer.toString();
    }
    public static void main(String[] args){
        Scanner in = new Scanner(System.in);
        while (in.hasNext()) {
            String str = in.nextLine();
            System.out.println(test(str));
        }
    }
}

